package org.feiye.studyday02;

import java.util.Scanner;

public class Even {

	public static void main(String[] args) {
		// 三目运算符判断一个数是否为偶数
		Scanner input = new Scanner(System.in);
		System.out.println("请输入一个整数：");
		int number = input.nextInt();
		String result = (number % 2 == 0) ? "偶数" : "奇数";
		System.out.println(number + "为" + result);

	}

}
